/*
 * 文 件 名:  dictionary.java
 * 版    权:  ZF Technologies Co., Ltd. Copyright 2013-,  All rights reserved
 * 描    述:  <描述>
 * 修 改 人:  张栋
 * 修改时间:  2014-4-11
 * 跟踪单号:  <跟踪单号>
 * 修改单号:  <修改单号>
 * 修改内容:  <修改内容>
 */
package com.azt.api.pojo;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.azt.pojo.BaseEntity;

/**
 * @author  张栋
 * @version  [版本号, 2014-4-11]
 * @see  [相关类/方法]
 * @since  [产品/模块版本]
 */
@Table(name="back_dictionary")
public class Dictionary extends BaseEntity{
	
	@Column(name="name")
	private String name;
	@Column(name="descr")
	private String descr;
	@Column(name="code")
	private String code;
	@Column(name="parent_id")
	private Integer parentId;
	@Column(name="sort_num")
	private Integer sortnum;
	@Transient
	private Dictionary   parent;
	@Transient
	private List<Dictionary> children; 
	
	
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public Integer getSortnum() {
		return sortnum;
	}
	public void setSortnum(Integer sortnum) {
		this.sortnum = sortnum;
	}
	
	public Integer getParentId() {
		return parentId;
	}
	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}
	public Dictionary getParent() {
		return parent;
	}
	public void setParent(Dictionary parent) {
		this.parent = parent;
	}
	public List<Dictionary> getChildren() {
		return children;
	}
	
	public void setChildren(List<Dictionary> children) {
		this.children = children;
	}
	public String getDescr() {
		return descr;
	}
	public void setDescr(String descr) {
		this.descr = descr;
	}
	
	
	
}
